package cn.zhouchao.pet.service.impl;

import cn.zhouchao.pet.domain.PetDetail;
import cn.zhouchao.pet.mapper.PetDetailMapper;
import cn.zhouchao.pet.service.IPetDetailService;
import cn.zhouchao.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhouchao
 * @since 2023-03-13
 */
@Service
public class PetDetailServiceImpl extends BaseServiceImpl<PetDetail> implements IPetDetailService {

    @Autowired
    private PetDetailMapper petDetailMapper;

    @Override
    public PetDetail detailByPetId(Long petId) {
        return petDetailMapper.findByPetId(petId);
    }

    @Override
    public PetDetail findByPetId(Long petId) {
        return petDetailMapper.findByPetId(petId);
    }
}
